<?php
/**
 * Magento Enterprise Edition
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Magento Enterprise Edition End User License Agreement
 * that is bundled with this package in the file LICENSE_EE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.magento.com/license/enterprise-edition
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     enterprise_iphone
 * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license http://www.magento.com/license/enterprise-edition
 */
?>
<?php $_item = $this->getItem()?>
<li class="list-item">
    <label class="btn-remove2"><input type="checkbox" name="items[<?php echo $_item->getItemId() ?>][delete]" value="1" onchange="this.form.submit()" /> Remove</label>
    <?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" class="product-image" title="<?php echo $this->escapeHtml($this->getProductName()) ?>"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?>
    <h2 class="product-name">
    <?php if ($this->hasProductUrl()):?>
        <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
    <?php else: ?>
        <?php echo $this->escapeHtml($this->getProductName()) ?>
    <?php endif; ?>
    </h2>

    <div class="product-info">
        <label><?php echo $this->__('Qty:') ?> <input class="input-text qty" name="items[<?php echo $_item->getId() ?>][qty]" value="<?php echo $_item->getQty()*1 ?>"/></label>
        <p><?php echo $this->__('Qty Fulfilled:') ?> <?php echo $_item->getQtyFulfilled()*1 ?></p>
    </div>

    <?php if ($_options = $this->getOptionList()):?>
    <dl class="item-options">
        <?php foreach ($_options as $_option) : ?>
        <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
        <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
        <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
            <?php if (isset($_formatedOptionValue['full_view'])): ?>
            <div class="truncated_full_value">
                <dl class="item-options">
                    <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
                    <dd><?php echo $this->escapeHtml($_formatedOptionValue['full_view']) ?></dd>
                </dl>
            </div>
            <?php endif; ?>
        </dd>
        <?php endforeach; ?>
    </dl>
    <?php endif;?>

    <?php if ($messages = $this->getMessages()): ?>
    <?php foreach ($messages as $message): ?>
        <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
    <?php endforeach; ?>
    <?php endif; ?>

    <textarea name="items[<?php echo $_item->getId() ?>][note]" rows="3" cols="5" placeholder="<?php echo $this->__('Note') ?>"><?php echo $this->escapeHtml($_item->getNote()) ?></textarea>
</li>
